var App = require('app');

App.FormDisplayRoute = Ember.Route.extend({
	model: function(params) {
		if (Util.isNotEmpty(params.form_id)) {
			Vari.CurrFormId = params.form_id;
		}
	},
	setupController : function(controller, model) {				
		Vari.frm = FormUtil.retriveInfo(Vari.CurrFormId);
		controller.set('content', Vari.frm);
	},
});

App.FormSessionRoute = Ember.Route.extend({
	model: function(params) {
		if (Util.isNotEmpty(params.form_id)) {
			Vari.CurrFormId = params.form_id;
		}
	},
	setupController : function(controller, model) {				
		//Vari.frm = FormUtil.retriveInfo(Vari.CurrFormId);
		//controller.set('content', Vari.frm);
	},
});